package com.niodata.dp.monitor.sharelib.entity.file;

import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;

public class FileIndexItem {

  String id;
  String dataSourceId;
  String rootDir;
  boolean enabled = false;
  String status;
  ScheduleTimeUnit cronExpression;
  String description;
  long lastBuildCount;
  @JsonFormat(shape = JsonFormat.Shape.STRING, timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  Date createTime;
  @JsonFormat(shape = JsonFormat.Shape.STRING, timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  Date lastBuildTime;

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getDataSourceId() {
    return dataSourceId;
  }

  public void setDataSourceId(String dataSourceId) {
    this.dataSourceId = dataSourceId;
  }

  public String getRootDir() {
    return rootDir;
  }

  public void setRootDir(String rootDir) {
    this.rootDir = rootDir;
  }

  public boolean isEnabled() {
    return enabled;
  }

  public void setEnabled(boolean enabled) {
    this.enabled = enabled;
  }

  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  public ScheduleTimeUnit getCronExpression() {
    return cronExpression;
  }

  public void setCronExpression(ScheduleTimeUnit cronExpression) {
    this.cronExpression = cronExpression;
  }

  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public long getLastBuildCount() {
    return lastBuildCount;
  }

  public void setLastBuildCount(long lastBuildCount) {
    this.lastBuildCount = lastBuildCount;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public Date getLastBuildTime() {
    return lastBuildTime;
  }

  public void setLastBuildTime(Date lastBuildTime) {
    this.lastBuildTime = lastBuildTime;
  }

  @Override
  public String toString() {
    return "FileIndexItem{"
          + "id='" + id + '\''
          + ", dataSourceId='" + dataSourceId + '\''
          + ", rootDir='" + rootDir + '\''
          + ", enabled=" + enabled
          + ", status='" + status + '\''
          + ", cronExpression='" + cronExpression + '\''
          + ", description='" + description + '\''
          + ", createTime=" + createTime
          + ", lastBuildTime=" + lastBuildTime
          + '}';
  }
}
